package routers

import (
	"forhouyu/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.SetLogger("file", `{"filename":"logs/test.log"}`)
	beego.SetStaticPath("/static", "static")
	//首页
	///beego.Router("/", &controllers.AppController{}, "get:Cert_qysb")
	//登陆页
	beego.Router("/", &controllers.SystemController{}, "get:LoginView")
	beego.Router("/loginview", &controllers.SystemController{}, "get:LoginView")
	beego.Router("/login", &controllers.SystemController{}, "post:Login")
	//应用模板管理
	beego.Router("/cert_qysb", &controllers.AppController{}, "get:Cert_qysb")
	beego.Router("/cert_wxd", &controllers.AppController{}, "get:Cert_wxd")
	beego.Router("/cert_cpdj", &controllers.AppController{}, "get:Cert_cpdj")
	beego.Router("/cert_cpxx_submit", &controllers.AppController{}, "get:Cert_cpxx_submit")

	beego.Router("/add_cert_qysb", &controllers.AppController{}, "post:Add_cert_qysb")
	beego.Router("/add_cert_wxd", &controllers.AppController{}, "post:Add_cert_wxd")
	beego.Router("/add_cert_cpdj", &controllers.AppController{}, "post:Add_cert_cpdj")
	beego.Router("/add_cert_cpxx_submit", &controllers.AppController{}, "post:Add_cert_cpxx_submit")

	beego.Router("/query_cert_qysb", &controllers.AppController{}, "get:Query_cert_qysb")
	beego.Router("/query_cert_wxd", &controllers.AppController{}, "get:Query_cert_wxd")
	beego.Router("/query_cert_cpdj", &controllers.AppController{}, "get:Query_cert_cpdj")


	beego.Router("/add_pace", &controllers.AppController{}, "post:AddPace")
}
